#pragma config (motor, port2, MR, tmotornormal, openLoop)
#pragma config (motor, port3, ML, tmotornormal, openLoop, reversed)

task main()
{
 wait1Msec(60000);
 int X;
 for(int i = 0; i < 10; i++)
 {
 X = random(10);

 if(X == 0)
 {
 motor[MR] = 127;
 motor[ML] = 127;
 wait1Msec(5000);
 }

 if(X == 5)
 {
 motor[MR] = -127;
 motor[ML] = 127;
 wait1Msec(5000);
 }

 if(X >= 1 && X * 10 <= 4)
 {
 motor[MR] = 127;
 motor[ML] = 70;
 wait1Msec(5000);
 }

 if(X >= 6 && X <= 10)
 {
 motor[MR] = 70;
 motor[ML] = 127;
 wait1Msec(5000);
 }
 wait1Msec(1000);
 }
}
